package com.example.chirdrenserver.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Data
@ConfigurationProperties("jwt")
@Component
public class UserJwtProperties {
    /**
     * 用户Jwt相关配置文件
     * @param secretKey jwt秘钥
     * @param ttlMillis jwt过期时间(毫秒)
     * @param claims    设置的信息
     * */
    private String userSecretKey; //
    private long userTtl;
    private String userTokenName;
    public String getUserSecretKey() {
        return this.userSecretKey;
    }

    public long getUserTtl() {
        return this.userTtl;
    }

    public String getUserTokenName() {
        return this.userTokenName;
    }
}
